import request from '@/utils/request';

export async function publishArticle(params: any) {
  return request(`/articles/save/${params.id}`, {
    method: 'POST',
    data: params,
  });
}

export async function publishFetch(params: any) {
  return request(`/articles/detail/${params.id}`, {
    method: 'GET'
  });
}
